Checks: |
    bugprone-*,
    cert-*,
    clang-analyzer-*,
    misc-*,
    performance-*,
    portability-*,
    readability-*,
    -bugprone-easily-swappable-parameters,
    -bugprone-multi-level-implicit-pointer-conversion,
    -cert-*-cpp
    -misc-include-cleaner,
    -readability-function-cognitive-complexity,
    -readability-redundant-casting

CheckOptions:
    - key: bugprone-reserved-identifier.AllowedIdentifiers
      value: _XOPEN_SOURCE;_BSD_SOURCE;_DARWIN_C_SOURCE;_DEFAULT_SOURCE;_GNU_SOURCE;_FORTIFY_SOURCE
    - key: cert-dcl37-c.AllowedIdentifiers
      value: _XOPEN_SOURCE;_BSD_SOURCE;_DARWIN_C_SOURCE;_DEFAULT_SOURCE;_GNU_SOURCE;_FORTIFY_SOURCE
    - key: cert-dcl51-cpp.AllowedIdentifiers
      value: _XOPEN_SOURCE;_BSD_SOURCE;_DARWIN_C_SOURCE;_DEFAULT_SOURCE;_GNU_SOURCE;_FORTIFY_SOURCE
    - key: readability-function-cognitive-complexity.Threshold
      value: 30
    - key: readability-function-cognitive-complexity.DescribeBasicIncrements
      value: false
    - key: readability-identifier-length.IgnoredParameterNames
      value: "^(a|b|ch|id|wd)$"
    - key: readability-identifier-length.IgnoredVariableNames
      value: "^(a|b|ch|id|wd)$"

ExtraArgs:
    - '-DLINT'
    - '-std=c99'

WarningsAsErrors: '*'
